package com.lagou.order.feign;

import com.lagou.commen.pojo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 李树飞
 */
@FeignClient(name = "lagou-service-goods", fallback = GoodsFeignFallBack.class)
public interface GoodsFeign {

    @GetMapping("/goods/query/{id}")
    Goods findById(@PathVariable Integer id);

//    @GetMapping("/service/port")
//    public String getPort();
}
